﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using Framework;

namespace Enterprise
{
   public class TeamStyleConfig : ConfigService
    {
       static TeamStyleConfig()
        {
            ThumbnailWidth = ConfigurationManager.AppSettings["TeamStyleThumbnailWidth"].SafeToInt();
            ThumbnailHeight = ConfigurationManager.AppSettings["TeamStyleThumbnailHeight"].SafeToInt();
            ThumbnailPrefix = ConfigurationManager.AppSettings["TeamStyleThumbnailPrefix"].SafeToString();
            ImageSize = ConfigurationManager.AppSettings["TeamStyleImageSize"].SafeToInt();
            NormalWidth = ConfigurationManager.AppSettings["TeamStyleNormalWidth"].SafeToInt();
            NormalHeight = ConfigurationManager.AppSettings["TeamStyleNormalHeight"].SafeToInt();
            NormalPrefix = ConfigurationManager.AppSettings["TeamStyleNormalPrefix"].SafeToString();
            IsWaterMark = ConfigurationManager.AppSettings["IsTeamStyleWaterMark"].SafeToBool();
            WaterMarkFileName = ConfigurationManager.AppSettings["TeamStyleWaterMarkFileName"].SafeToString();
            WaterMarkRelativePath = ConfigurationManager.AppSettings["TeamStyleWaterMarkRelativePath"].SafeToString();
            IsGenerateThumbnail = ConfigurationManager.AppSettings["IsTeamStyleGenerateThumbnail"].SafeToBool();
            IsGenerateNormal = ConfigurationManager.AppSettings["IsTeamStyleGenerateNormal"].SafeToBool();
            IsAdaptive = ConfigurationManager.AppSettings["IsTeamStyleImageAdaptive"].SafeToBool();
            RelativePath = ConfigurationManager.AppSettings["TeamStyleImageRelativePath"].SafeToString();
        }
        public new static int ThumbnailWidth { get; set; }

        public new static int ThumbnailHeight { get; set; }

        public new static int ImageSize { get; set; }

        public new static bool IsGenerateThumbnail { get; set; }

        public new static string ThumbnailPrefix { get; set; }

        public new static bool IsWaterMark { get; set; }

        public new static string RelativePath { get; set; }

        public new static string WaterMarkFileName { get; set; }

        public new static string WaterMarkRelativePath { get; set; }

        public new static bool IsGenerateNormal { get; set; }

        public new static bool IsAdaptive { get; set; }

        public new static int NormalWidth { get; set; }

        public new static int NormalHeight { get; set; }

        public new static string NormalPrefix { get; set; }

    }
}

